package com.mapper;

import com.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author YDW
 * projectName:project2202_3
 * time:2022/4/27 17:18
 * description:
 */
public interface UserMapper {

    List<User> queryAll();

    User queryById(int id);

    User queryByNameAndPsw(@Param("name") String name,@Param("password") String password);

    long totalCount();

    List<User> queryLike(String input);

    void insert(User user);

    void update(User user);

    void delete(int id);

}
